package org.distributed.transaction.core.callback;

import java.sql.Connection;

/**
 * 获取数据库连接的回调方法
 *
 */
public interface ConnectionCallback {

	/**
	 * callback proto getConnection
	 *
	 * @return java.sql.Connection
	 * @throws Throwable ex
	 */
	Connection callback() throws Throwable;
}
